
import React, { MutableRefObject,useRef } from 'react';
function UseRef() {
  const refInput = useRef(null);
  return(
      <>
          <input type="text" ref={refInput} />
          <button onClick={() => refInput.current.focus()}>Submit</button>
      </>
  )

}
export default UseRef;